package com.wanmait.schedule.mapper;

import com.wanmait.schedule.entity.ClassMerge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 合班表 Mapper 接口
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
public interface ClassMergeMapper extends BaseMapper<ClassMerge> {
    List<ClassMerge> list(ClassMerge classMerge);
    ClassMerge findById(Integer id);

    void updateClassesStudentCount(@Param("count") Integer count,@Param("id") Integer id);
    void updateClassesMerge(@Param("id") Integer id);
    void updateStudentCount(@Param("newId") Integer newId,@Param("oldId") Integer oldId);
}
